<?php

/*

Clubs (clubs.php)

*/

$rank_check = 1;
$page_title = "Clubs";
include "header.inc.php";
$game=$_GET['game'];

$getmemberdata = fetch("SELECT * FROM club_members2 WHERE user = '$userid' AND game = '$game'");
if($getmemberdata[id])
{
}
else
{
	die("You do not have a club yet, please click <a href=club_create.php?game=$game>here</a> to create one.");
}
echo $openHTML;

print "

<p>Welcome to clubs. Here you can either create your own club or join one that looks interesting to you. So feel free to look around and join one if you're interested!</p>

<p align=center>
<TABLE BGCOLOR=\"$tableOutline\" CELLSPACING=1 CELLPADDING=0 WIDTH=300>
   <TR BGCOLOR=\"$topAndBottomBG\">
      <TD HEIGHT=50>
         <CENTER><FONT SIZE=\"+3\" COLOR=\"$topAndBottomText\"><B><a href=club.php?game=$game&clubid=$getmemberdata[club] class=white>My Club</a></B></FONT></CENTER>
      </TD>
   </TR>
</TABLE>
</p>

<p align=center>
<TABLE BGCOLOR=\"$tableOutline\" CELLSPACING=1 CELLPADDING=0 WIDTH=300>
   <TR BGCOLOR=\"$topAndBottomBG\">
      <TD HEIGHT=50>
         <CENTER><FONT SIZE=\"+3\" COLOR=\"$topAndBottomText\"><B><a href=listclubs.php?game=$game class=white>List Clubs</a></B></FONT></CENTER>
      </TD>
   </TR>
</TABLE>
</p>

<p align=center>
<TABLE BGCOLOR=\"$tableOutline\" CELLSPACING=1 CELLPADDING=0 WIDTH=300>
   <TR BGCOLOR=\"$topAndBottomBG\">
      <TD HEIGHT=50>
         <CENTER><FONT SIZE=\"+3\" COLOR=\"$topAndBottomText\"><B><a href=club_create.php?game=$game class=white>Create Club</a></B></FONT></CENTER>
      </TD>
   </TR>
</TABLE>
</p>

";

echo $closeHTML;

?>
